home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / locale.h < prev    next >
C/C++ Source or Header  |  1997-04-14  |  4KB  |  116 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_LOCALE_H
  4. #define _INLINE_LOCALE_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef LOCALE_BASE_NAME
  11. #define LOCALE_BASE_NAME LocaleBase
  12. #endif /* !LOCALE_BASE_NAME */
  13.  
  14. #define CloseCatalog(catalog) \
  15.     LP1NR(0x24, CloseCatalog, struct Catalog *, catalog, a0, \
  16.     , LOCALE_BASE_NAME)
  17.  
  18. #define CloseLocale(locale) \
  19.     LP1NR(0x2a, CloseLocale, struct Locale *, locale, a0, \
  20.     , LOCALE_BASE_NAME)
  21.  
  22. #define ConvToLower(locale, character) \
  23.     LP2(0x30, ULONG, ConvToLower, struct Locale *, locale, a0, unsigned long, character, d0, \
  24.     , LOCALE_BASE_NAME)
  25.  
  26. #define ConvToUpper(locale, character) \
  27.     LP2(0x36, ULONG, ConvToUpper, struct Locale *, locale, a0, unsigned long, character, d0, \
  28.     , LOCALE_BASE_NAME)
  29.  
  30. #define FormatDate(locale, fmtTemplate, date, putCharFunc) \
  31.     LP4NR(0x3c, FormatDate, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, struct DateStamp *, date, a2, struct Hook *, putCharFunc, a3, \
  32.     , LOCALE_BASE_NAME)
  33.  
  34. #define FormatString(locale, fmtTemplate, dataStream, putCharFunc) \
  35.     LP4(0x42, APTR, FormatString, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, APTR, dataStream, a2, struct Hook *, putCharFunc, a3, \
  36.     , LOCALE_BASE_NAME)
  37.  
  38. #define GetCatalogStr(catalog, stringNum, defaultString) \
  39.     LP3(0x48, STRPTR, GetCatalogStr, struct Catalog *, catalog, a0, long, stringNum, d0, STRPTR, defaultString, a1, \
  40.     , LOCALE_BASE_NAME)
  41.  
  42. #define GetLocaleStr(locale, stringNum) \
  43.     LP2(0x4e, STRPTR, GetLocaleStr, struct Locale *, locale, a0, unsigned long, stringNum, d0, \
  44.     , LOCALE_BASE_NAME)
  45.  
  46. #define IsAlNum(locale, character) \
  47.     LP2(0x54, BOOL, IsAlNum, struct Locale *, locale, a0, unsigned long, character, d0, \
  48.     , LOCALE_BASE_NAME)
  49.  
  50. #define IsAlpha(locale, character) \
  51.     LP2(0x5a, BOOL, IsAlpha, struct Locale *, locale, a0, unsigned long, character, d0, \
  52.     , LOCALE_BASE_NAME)
  53.  
  54. #define IsCntrl(locale, character) \
  55.     LP2(0x60, BOOL, IsCntrl, struct Locale *, locale, a0, unsigned long, character, d0, \
  56.     , LOCALE_BASE_NAME)
  57.  
  58. #define IsDigit(locale, character) \
  59.     LP2(0x66, BOOL, IsDigit, struct Locale *, locale, a0, unsigned long, character, d0, \
  60.     , LOCALE_BASE_NAME)
  61.  
  62. #define IsGraph(locale, character) \
  63.     LP2(0x6c, BOOL, IsGraph, struct Locale *, locale, a0, unsigned long, character, d0, \
  64.     , LOCALE_BASE_NAME)
  65.  
  66. #define IsLower(locale, character) \
  67.     LP2(0x72, BOOL, IsLower, struct Locale *, locale, a0, unsigned long, character, d0, \
  68.     , LOCALE_BASE_NAME)
  69.  
  70. #define IsPrint(locale, character) \
  71.     LP2(0x78, BOOL, IsPrint, struct Locale *, locale, a0, unsigned long, character, d0, \
  72.     , LOCALE_BASE_NAME)
  73.  
  74. #define IsPunct(locale, character) \
  75.     LP2(0x7e, BOOL, IsPunct, struct Locale *, locale, a0, unsigned long, character, d0, \
  76.     , LOCALE_BASE_NAME)
  77.  
  78. #define IsSpace(locale, character) \
  79.     LP2(0x84, BOOL, IsSpace, struct Locale *, locale, a0, unsigned long, character, d0, \
  80.     , LOCALE_BASE_NAME)
  81.  
  82. #define IsUpper(locale, character) \
  83.     LP2(0x8a, BOOL, IsUpper, struct Locale *, locale, a0, unsigned long, character, d0, \
  84.     , LOCALE_BASE_NAME)
  85.  
  86. #define IsXDigit(locale, character) \
  87.     LP2(0x90, BOOL, IsXDigit, struct Locale *, locale, a0, unsigned long, character, d0, \
  88.     , LOCALE_BASE_NAME)
  89.  
  90. #define OpenCatalogA(locale, name, tags) \
  91.     LP3(0x96, struct Catalog *, OpenCatalogA, struct Locale *, locale, a0, STRPTR, name, a1, struct TagItem *, tags, a2, \
  92.     , LOCALE_BASE_NAME)
  93.  
  94. #ifndef NO_INLINE_STDARG
  95. #define OpenCatalog(a0, a1, tags...) \
  96.     ({ULONG _tags[] = { tags }; OpenCatalogA((a0), (a1), (struct TagItem *)_tags);})
  97. #endif /* !NO_INLINE_STDARG */
  98.  
  99. #define OpenLocale(name) \
  100.     LP1(0x9c, struct Locale *, OpenLocale, STRPTR, name, a0, \
  101.     , LOCALE_BASE_NAME)
  102.  
  103. #define ParseDate(locale, date, fmtTemplate, getCharFunc) \
  104.     LP4(0xa2, BOOL, ParseDate, struct Locale *, locale, a0, struct DateStamp *, date, a1, STRPTR, fmtTemplate, a2, struct Hook *, getCharFunc, a3, \
  105.     , LOCALE_BASE_NAME)
  106.  
  107. #define StrConvert(locale, string, buffer, bufferSize, type) \
  108.     LP5(0xae, ULONG, StrConvert, struct Locale *, locale, a0, STRPTR, string, a1, APTR, buffer, a2, unsigned long, bufferSize, d0, unsigned long, type, d1, \
  109.     , LOCALE_BASE_NAME)
  110.  
  111. #define StrnCmp(locale, string1, string2, length, type) \
  112.     LP5(0xb4, LONG, StrnCmp, struct Locale *, locale, a0, STRPTR, string1, a1, STRPTR, string2, a2, long, length, d0, unsigned long, type, d1, \
  113.     , LOCALE_BASE_NAME)
  114.  
  115. #endif /* !_INLINE_LOCALE_H */
  116.